package com.gr.dmbackend.controller.sysadmin;

import com.alibaba.fastjson.JSONObject;
import com.gr.dmbackend.service.sysadmin.GetDormIdListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class GetDormIdListController {

    @Autowired
    private GetDormIdListService getDormIdListService;

    @GetMapping("/api/sysadmin/get-dormlist")
    public JSONObject getDormIdList(@RequestParam Map<String, String> data) {
        return getDormIdListService.getDormIdList(data);
    }
}
